#ifndef LIGHT_LOD_H
#define LIGHT_LOD_H
class light
{
   public:
   class position
   {
      //private:
      public:
      float pos[4];

      public:
      // no idx-exceed check
      float& operator[] (unsigned coo)
      {
         return pos[coo];
      }

      bool operator== (const position& p) const
      {
         if(pos[0]==p.pos[0] &&
            pos[1]==p.pos[1] &&
            pos[2]==p.pos[2] &&
            pos[3]==p.pos[3])
            return true;
         else
            return false;
      }
   };

   float amb[4];//ambient
   float diff[4];//diffuse
   float spec[4];//specular
   position pos;
};
#endif
